<?php echo $this->Html->css('datepicker'); ?>
<div class="row mt">
	<div class="col-lg-12">
		<div class="form-panel">
			<h4 class="mb"><i class="fa fa-angle-right"></i> Nuevo Cliente</h4>
			<?php echo $this->Form->create('Usuario', array('class' => 'form-horizontal style-form')); ?>
				<div class="form-group">
					<div class="col-sm-4">
						<?php echo $this->Form->input('username', array('class' => 'form-control', 'label' => 'Nombre')); ?>
					</div>
					<div class="col-sm-4">
						<?php echo $this->Form->input('apellido', array('class' => 'form-control')); ?>
					</div>
					<div class="col-sm-2">
						<?php echo $this->Form->input('fecha_nacimiento', array('class' => 'form-control datepicker', 'type' => 'text')); ?>
					</div>
					<div class="col-sm-2">
						<?php echo $this->Form->input('rut', array('class' => 'form-control')); ?>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-4">
						<?php echo $this->Form->input('correo', array('class' => 'form-control')); ?>
					</div> 
					<div class="col-sm-3">
						<?php echo $this->Form->input('celular', array('class' => 'form-control')); ?>
					</div>
					<div class="col-sm-3">
						<?php echo $this->Form->input('hora_atencion', array('class' => 'form-control', 'type' => 'text')); ?>
					</div>
					<div class="col-sm-1">
						<?php echo $this->Form->input('altura', array('class' => 'form-control')); ?>
					</div>
					<div class="col-sm-1">
						<?php echo $this->Form->input('peso', array('class' => 'form-control')); ?>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3">
						<?php echo $this->Form->input('Alergia', array('class' => 'form-control', 'label' => 'Alergias o enfermedades')); ?>	
					</div>
					<div class="col-sm-3">
						<?php echo $this->Form->input('password', array('class' => 'form-control', 'label' => 'Contraseña')); ?>
					</div>
					<dvi class="col-sm-3">
						<?php echo $this->Form->input('role', array('options' => array('cliente' => 'Cliente', 'admin' => 'Administrador'), 'label' => 'Perfil', 'class' => 'form-control')); ?>
					</dvi>
				</div>
				<?php
					echo $this->Form->input('estado', array('type' => 'hidden', 'value' => '1'));
				?>
				<div class="form-group">
					<div class="col-sm-2">
						<?php echo $this->Form->end(array('label' => __('Guardar'),  'class' => 'btn btn-sm btn-theme btn-block')); ?>
					</div>
				</div>
		</div>
	</div><!-- col-lg-12-->
</div><!-- /row -->
<?php echo $this->Html->script('bootstrap-datepicker'); ?>
<script>
$(document).ready(function(){
	 $('.datepicker').datepicker({
            format: "yyyy-mm-dd",
            autoclose:true
        });
});
</script>